/*
 * @Author: 
 * @Date: 2025-09-16 16:09:06
 * @LastEditor: zhuxiaoyi
 * @LastEditTime: 2025-09-16 16:09:59
 * @Description: 
 */
/*
 * @Author: 
 * @Date: 2025-09-16 16:09:06
 * @LastEditor: zhuxiaoyi
 * @LastEditTime: 2025-09-16 16:09:14
 * @Description: 
 */
import { ApiProperty } from '@nestjs/swagger';
import { IsEmail, IsNotEmpty, IsString, MinLength } from 'class-validator';

export class CreateUserDto {
  @ApiProperty({ description: '用户名', example: 'john_doe' })
  @IsNotEmpty()
  @IsString()
  username: string;

  @ApiProperty({ description: '邮箱', example: 'john@example.com' })
  @IsEmail()
  email: string;

  @ApiProperty({ description: '密码', example: 'password123' })
  @IsNotEmpty()
  @MinLength(6)
  password: string;

  @ApiProperty({ description: '姓名', example: 'John Doe' })
  @IsNotEmpty()
  @IsString()
  fullName: string;
}